package es.nadalgoyo.frikiquest.control;

import android.app.Activity;
import android.content.Context;
import android.content.res.AssetManager;
import android.util.AttributeSet;
import android.widget.LinearLayout;

abstract class AbstractControl extends LinearLayout {

	private Context context;
	private Activity activity;

	public Activity getActivity() {
		return activity;
	}

	public void setActivity(Activity activity) {
		this.activity = activity;
	}

	public AbstractControl(Context context) {
		super(context);
		this.context = context;
	}

	public AbstractControl(Context context, AttributeSet att) {
		super(context, att);
		this.context = context;

	}

	public abstract void inicializar();

	protected AssetManager getAssets() {
		return context.getAssets();
	}

}
